package entity

func (QuestionInfo) TableName() string {
	return "question_info"
}

type QuestionInfo struct {
	Id           int    `json:"id" gorm:"column:id"`
	Bid          int    `json:"bid" gorm:"column:bid"`
	Title        string `json:"title" gorm:"column:title"`
	Content      string `json:"content" gorm:"column:content"`
	QuestionerId int    `json:"questioner_id" gorm:"column:questioner_id"`
	Lik          int    `json:"lik" gorm:"column:lik"`
	Tim          string `json:"tim" gorm:"column:tim"`
	Comments     int    `json:"comments" gorm:"column:comments"`
	Views        int    `json:"views" gorm:"column:views"`
}

type QuestionInfoWithLiked struct {
	Ques  QuestionInfo
	Liked bool
}
